<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>模型管理</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.model.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
</head>
<body>
    <div class="hd-menu-list">
        <ul>
            <li class="active">
                <a href="javascript:;">模型列表</a>
            </li>
            <li>
                <a href="{:U('Model/add')}">添加模型</a>
            </li>
            <li>
                <a href="{:U('Model/update_cache')}" >更新缓存</a>
            </li>
        </ul>
    </div>
    <div class="hd-title-header">温馨提示</div>
    <div class="help">
        <ul>
            <li>
               请谨慎修改！
            </li>
        </ul>
    </div>
    <div class="content">
    		<form action = '{:U("Model/beachdelete")}' method='post' name="operationForm">
        <table class="hd-table hd-table-list hd-form">
            <thead>
                <tr>
                		<td class="hd-w30">
						<input type="checkbox" id="selectAllContent"/>
					</td>
                    <td class="hd-w30">mid</td>
                    <td>模型名称</td>
                    <td>表名称</td>
                    <td class="hd-w150">操作</td>
                </tr>
            </thead>
            <tbody>
                <if condition = '$data'>
                <foreach name='data' item='v'>
                <tr>
                		<td class="hd-w30">
							<input type="checkbox"  name="mid[{$v.mid}]" value="{$v.mid}" />
					</td>
                    <td>{$v.mid}</td>
                    <td>{$v.remark}</td>
                    <td>{$v.name}</td>
                    <td>
                        <a href="{:U('ModelField/index',array('mid'=>$v['mid']))}">字段管理</a>
                        |
                        <a href="{:U('Model/edit',array('mid'=>$v['mid']))}">修改</a>
                        |
                        <a href="javascript:;" onclick="del_modal('{:U('Model/del',array('mid'=>$v['mid']))}')">删除</a>
                    </td>
                </tr>
                </foreach>
                <else />
                <tr>
                    <td colspan="4">没有找到符合条件的记录</td>
                </tr>
                </if>
            </tbody>
        </table>
        <div class="hd-page"></div>
		<input type="button" class="hd-btn hd-btn-xm select_all"  value="全选" />
		<input type="button" class="hd-btn hd-btn-xm operation"  value="批量删除" name="update_del"/>
		</form>
    </div>
    

</body>
</html>